Fix save when select-safe-coding-system-accept-default-p is a function.
authorRob Browning <rlb@defaultvalue.org>
Thu, 24 Jul 2008 03:17:54 +0000 (20:17 -0700)
committerRob Browning <rlb@defaultvalue.org>
Thu, 24 Jul 2008 03:17:54 +0000 (20:17 -0700)
debian/changelog
debian/patches/fix-mule-select-safe-coding.diff [new file with mode: 0644]
debian/patches/series

index 0430413295d672e2c8125a27e2dc25d74c325f06..f5965479d8941fca24ba69a7b590dd888a172687 100644 (file)
@@ -8,7 +8,12 @@ emacs22 (22.2+2-3) unstable; urgency=low
     Leave that up to emacsen-common.  Thanks to Sven Joachim
     <svenjoac@gmx.de>. (closes: #490524)
 
- -- Rob Browning <rlb@defaultvalue.org>  Wed, 23 Jul 2008 19:31:57 -0700
+  * Don't prematurely raise an error when trying to save a non-ASCII
+    buffer when select-safe-coding-system-accept-default-p is set to a
+    function.  Thanks to Jun Inoue <jun.lambda@gmail.com>.
+    (closes: #488427)
+
+ -- Rob Browning <rlb@defaultvalue.org>  Wed, 23 Jul 2008 19:58:11 -0700
 
 emacs22 (22.2+2-2) unstable; urgency=medium
 
diff --git a/debian/patches/fix-mule-select-safe-coding.diff b/debian/patches/fix-mule-select-safe-coding.diff
new file mode 100644 (file)
index 0000000..c85f0f1
--- /dev/null
@@ -0,0 +1,25 @@
+* A problem with saving non-ASCII buffers has been fixed.
+  Patch: fix-mule-select-safe-coding.diff
+  Provided-by: Jun Inoue <jun.lambda@gmail.com>
+  Date: Sun, 29 Jun 2008 05:07:24 +0900
+  Added-by: Rob Browning <rlb@defaultvalue.org>
+  Status: incorporated upstream
+
+  Previously, Emacs would raise an error if even one coding system was
+  rejected when trying to save a buffer containing non-ASCII text when
+  select-safe-coding-system-accept-default-p was set to a function.
+  Now Emacs should continue.
+
+Index: sid/lisp/international/mule-cmds.el
+===================================================================
+--- sid.orig/lisp/international/mule-cmds.el
++++ sid/lisp/international/mule-cmds.el
+@@ -733,7 +733,7 @@
+           (let ((pos (point))
+                 (fill-prefix "  "))
+             (dolist (x (append rejected unsafe))
+-              (princ "  ") (princ (car x)))
++              (princ "  ") (princ x))
+             (insert "\n")
+             (fill-region-as-paragraph pos (point)))
+           (when rejected
index 81da874f99a40d1712e948e0cb643a5e9ca8f6d8..1328680dca641d2d61c324f6620b11505c5ba470 100644 (file)
@@ -9,4 +9,5 @@ avoid-fakemail-mail-loss.diff
 version-mention-debian.diff
 fix-vcdiff-tmp-file-handling-cve-2008-1694.diff
 make-fast-lock-cache-directories-risky-cve-2008-2142.diff
+fix-mule-select-safe-coding.diff
 autofiles.diff